package com.lei.yohuo001java.contract;

import com.google.gson.JsonObject;
import com.lei.mvp_retrofitlibrary.http.bean.GoodsBean;
import com.lei.mvp_retrofitlibrary.http.bean.LoginBean;
import com.lei.mvp_retrofitlibrary.http.bean.RegisterBean;
import com.lei.mvp_retrofitlibrary.mvp.model.IModel;
import com.lei.mvp_retrofitlibrary.mvp.presenter.IPresenter;
import com.lei.mvp_retrofitlibrary.mvp.view.IView;

import java.util.HashMap;

import io.reactivex.Observable;
import okhttp3.RequestBody;

/**
 * @ProjectName : YoHuo001Java
 * @Author : 雷金泷
 * @Time : 2020/12/17 9:28
 * @Description : 文件描述
 */
public interface ShopContract {
    interface Model extends IModel {
        Observable<GoodsBean> initshop(HashMap<String,String> map);
        Observable<RegisterBean> initregister(RequestBody requestBody);
        Observable<LoginBean> initlogin(RequestBody requestBody);
    }

    interface View extends IView {
        void initShop(GoodsBean goodsBean);
    }

    interface ShopView extends IView {
        void initShop2(GoodsBean goodsBean);
    }

    interface LoginView extends IView {
        void logindata(LoginBean loginBean);
    }

    interface RegisterView extends IView {
        void registerData(RegisterBean registerBean);
    }

    interface Presenter extends IPresenter{
        void initShop(int page);
        void initShop2(HashMap<String,String> map);
        void initlogin(String name,String pwd);
        void initregister(String name,String pwd);
    }




    interface XiangView extends IView {

        /**
         * 百分比展示白色
         */
        void showWhiteTitle(float percent);

        /**
         * Banner
         */
        void showBannerStyle(float percent);


        /**
         * 显示更多
         */
        void hideMoreContent();

    }


}
